﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Secure/Secure.Master" AutoEventWireup="true" CodeBehind="Add Hive.aspx.cs" Inherits="Site.Secure.Add_Hive" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<h1>Register Hive</h1>
<a>This page allows you to register a new Hive.</a>
    Hives have to be registered here before any data can be collected from the hive 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table>

<tr>
<td><a>Hive ID:</a></td>
<td><asp:TextBox ID="edtHiveNo" runat="server" CssClass="Input" Width="150px" 
        MaxLength="10"></asp:TextBox></td>
</tr>

<tr>
<td><a>Worker ID:</a></td>
<td><asp:DropDownList ID="edtWID" runat="server" CssClass="Input" Width="150px" 
        MaxLength="4" DataSourceID="SqlDataSource1" DataTextField="WID" 
        DataValueField="WID"></asp:DropDownList></td>
</tr>

<tr>
<td><a>GPS Long:</a></td>
<td><asp:TextBox ID="edtLong" runat="server" CssClass="Input" Width="150px" 
        MaxLength="50"></asp:TextBox></td>
</tr>

<tr>
<td><a>GPS Lat:</a></td>
<td><asp:TextBox ID="edtLat" runat="server" CssClass="Input" Width="150px" 
        MaxLength="50"></asp:TextBox></td>
</tr>
<tr>
<td style="height: 30px"></td>
<td align=right style="height: 30px" ><asp:Button ID="Button1" runat="server" Text="Register" 
        onclick="Button1_Click" Width="77px" /></td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:csMain %>" 
        SelectCommand="SELECT * FROM [Workers]"></asp:SqlDataSource>
</asp:Content>
